<?php
include_once '../data/database_dal.php';

class FeedbackDAL extends DatabaseDAL
{
    function update()
    {
    }

    function get($where)
    {
        $this->connect();
        $result = $this->mysqli->query("call pr_feedback_get(".'"'. $where .'"'.")");
        $this->close();
        return $result;
    }

    function getAll($orderBy)
    {
        $this->connect();
        $result = $this->mysqli->query("call pr_feedback_list(".'"'. $orderBy .'"'.")");
        $this->close();
        return $result;
    }

    function delete($id)
    {
        $this->connect();
        $result = $this->mysqli->query("call pr_feedback_delete('". $id ."')");
    }
?>